home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Examples / Rocky / Dexter5.wwModel / initialDefines.eve < prev    next >
Encoding:
Text File  |  1995-03-22  |  3.1 KB  |  114 lines

  1. set head(leftSideRightSideR) 0.5
  2. set head(leftSideRightSideRMin) -20
  3. set head(leftSideRightSideRMax) 20
  4. proc rotateHeadSideLeftSideRight {u min max}  {  Rotate [expr {lerpUp($u, $min, $max)}] 0 0 1 }
  5.  
  6. set head(leftRightR) 0.5
  7. set head(leftRightRMin) -60
  8. set head(leftRightRMax) 60
  9. proc rotateHeadLeftRight {u min max}  {  Rotate [expr {lerpUp($u, $min, $max)}] 0 1 0 }
  10.  
  11. set head(upDownR) 0.33
  12. set head(upDownRMin) -10
  13. set head(upDownRMax) 20
  14. proc rotateHeadUpDown {u min max}  {  Rotate [expr {lerpUp($u, $min, $max)}] 1 0 0 }
  15.  
  16.  
  17. set head(jawXR) 0.7
  18. set head(jawXRMin) -20
  19. set head(jawXRMax) 7
  20. proc jawXR {u min max}  {  Rotate [expr {lerpUp($u, $min, $max)}] 1 0 0 }
  21.  
  22. set head(jawYR) 0.5
  23. set head(jawYRMin) -5
  24. set head(jawYRMax) 5
  25. proc jawYR {u min max} {  Rotate [expr {lerpUp($u, $min, $max)}] 0 1 0 }
  26.  
  27. set head(jawZR) 0.5
  28. set head(jawZRMin) -3
  29. set head(jawZRMax) 3
  30. proc jawZR {u min max}  {  Rotate [expr {lerpUp($u, $min, $max)}] 0 0 1    }
  31.  
  32. set head(lidRMin) 65
  33. set head(lidRMax) 100
  34. set head(leftLidR) .7
  35. set head(rightLidR) .7
  36. proc openLid {u min max} {  Rotate [expr {lerpUp($u, $min, $max)}] 1 0 0 }
  37.  
  38. set head(eyeLeftRightRMin) -40
  39. set head(eyeLeftRightRMax) 40
  40. set head(eyeLeftRightR) .5
  41. proc setLookLeftRightAngle {u min max}  {  Rotate [expr lerpDown($u, $min, $max)] 0 1 0 }
  42.  
  43. set leftShoulder(yScale) 1
  44. set leftShoulder(thetaMax) 360
  45. set leftShoulder(minorRadius) 0.07
  46. set leftShoulder(phiMin) 0
  47. set leftShoulder(xTranslate) 0
  48. set leftShoulder(xRotate) 90
  49. set leftShoulder(phiMax) 360
  50. set leftShoulder(yRotate) 0
  51. set leftShoulder(xScale) 0.521311
  52. set leftShoulder(zTranslate) -0.066667
  53. set leftShoulder(zRotate) 80
  54. set leftShoulder(majorRadius) 0.07
  55. set leftShoulder(zScale) 1.052459
  56. set leftShoulder(yTranslate) 0
  57.  
  58. set rightShoulder(yScale) 1.0
  59. set rightShoulder(thetaMax) 360
  60. set rightShoulder(minorRadius) 0.07
  61. set rightShoulder(phiMin) 0
  62. set rightShoulder(xTranslate) 0
  63. set rightShoulder(xRotate) 270
  64. set rightShoulder(phiMax) 360
  65. set rightShoulder(yRotate) 0
  66. set rightShoulder(xScale) 0.521311
  67. set rightShoulder(zTranslate) 0.066667
  68. set rightShoulder(zRotate) 80
  69. set rightShoulder(majorRadius) 0.07
  70. set rightShoulder(zScale) 1.052459
  71. set rightShoulder(yTranslate) 0
  72.  
  73. set armOffset(xT) -0.25
  74. set armOffset(yT) .15
  75. set armOffset(zT) 0
  76. set armOffset(yR) -180
  77.  
  78. set shoulder(xOffset) .0433
  79. set shoulder(zOffset) .06
  80.  
  81. set leftShoulder(zOffset) .035
  82. set rightShoulder(zOffset) .035
  83.  
  84. set spin(x) 0
  85. set spin(y) 0
  86. set spin(z) 0
  87.  
  88. set head(color) {.345546 .593097 .47322}
  89.  
  90.  
  91. set match(xT) -.2
  92. set match(yT) -.05
  93. set match(zT) -.4
  94.  
  95. # for right now, we'd like the x rotation of the match to be keyed off
  96. # how big Dexter's mouth is open.  Actually, we'd probably like to clamp
  97. # it to the interval of .7 to 1, and just let it droop to the min below 
  98. # that.
  99. set match(xRMin) -20
  100. set match(xRMax) 20
  101. EveCmd {set match(xR) $head(jawXR)} 
  102. proc setMatchXR {u min max}  {  Rotate [expr lerpUp($u, $min, $max)] 1 0 0 }
  103.  
  104. set match(yR) .7
  105. set match(yRMin) 160
  106. set match(yRMax) 220
  107. proc setMatchYR {u min max}  {  Rotate [expr lerpUp($u, $min, $max)] 0 1 0  }
  108.  
  109. set match(zR) 0
  110. set match(zRMin) 0
  111. set match(zRMax) 360
  112. proc setMatchZR {u min max}  {  Rotate [expr lerpUp($u, $min, $max)] 0 0 1 }
  113.  
  114.